<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>方法调用基本流程测试</title>
</head>
<body>
<div id="helloweb"> 
	<div id="echoInfo">如果有数据返回，会显示在这儿</div>
	

	</div>

	<script type="text/javascript">
	
	function funFromjs(){
    	document.getElementById("helloweb").innerHTML="HelloWebView,i'm from js";
    }
		function echoInfo( container, obj ){
			var domContainer = document.getElementById('echoInfo');
			domContainer.innerHTML = JSON.stringify( obj );
		}

		//function windowCallback( str ){
			//echoInfo( 'echoInfo', str );
		//}

		 window.windowCallback = function( str ){
		 	echoInfo( 'echoInfo', str );
		 };

		var MfsJSBridge = MfsJSBridge || undefined;
		if( undefined != MfsJSBridge ){

			//看这里
			var params = {
				id : 1,
				name : '测试'
			};

			var strParams = JSON.stringify( params );

			MfsJSBridge.invoke( 'testFunc', strParams, 'windowCallback');

		}else{
			alert('未定义MfsJSBridge');

		}

	</script>

</body>
</html>